package cn.explink.dop.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import cn.explink.dop.entity.vo.OrderStatusRecordVO;
import cn.explink.eap.core.common.dao.impl.GenericBaseCommonDao;

/**
 *
 * @ClassName: OrderStatusRecordDao
 * @Description: 订单状态记录Dao
 * @author 孟凡岭
 * @date 2015年4月22日 下午5:36:08
 * @since AR1.0
 */
@Repository("orderStatusRecordDao")
public class OrderStatusRecordDao extends GenericBaseCommonDao<OrderStatusRecordVO, String> {
	/**
	 *
	 * @Title: queryByOrderId
	 * @Description: 通过订单号加载订单信息
	 * @author 孟凡岭
	 * @param @param orderId
	 * @param @return
	 * @return List<OrderStatusRecordVO> 返回类型
	 * @throws
	 */
	@SuppressWarnings("unchecked")
	public List<OrderStatusRecordVO> queryByOrderId(String orderId) {
		// TODO Auto-generated method stub
		String sql = "from OrderStatusRecordVO where orderId=?";
		return this.getSession().createQuery(sql).setParameter(0, orderId).list();
	}

}
